package mysql

import "github.com/zeromicro/go-zero/core/stores/sqlx"

var _ TbIndayInfoModel = (*customTbIndayInfoModel)(nil)

type (
	// TbIndayInfoModel is an interface to be customized, add more methods here,
	// and implement the added methods in customTbIndayInfoModel.
	TbIndayInfoModel interface {
		tbIndayInfoModel
		withSession(session sqlx.Session) TbIndayInfoModel
	}

	customTbIndayInfoModel struct {
		*defaultTbIndayInfoModel
	}
)

// NewTbIndayInfoModel returns a model for the database table.
func NewTbIndayInfoModel(conn sqlx.SqlConn) TbIndayInfoModel {
	return &customTbIndayInfoModel{
		defaultTbIndayInfoModel: newTbIndayInfoModel(conn),
	}
}

func (m *customTbIndayInfoModel) withSession(session sqlx.Session) TbIndayInfoModel {
	return NewTbIndayInfoModel(sqlx.NewSqlConnFromSession(session))
}
